package exam;

import java.util.Scanner;

public class EX03_AccountService 
										implements EX03_IAccountService {

	private static EX03_IAccountDAO adao = null;
	public EX03_AccountDAO() {
		adao = new EX03_AccountDAO();
	}
	
	
	
	@Override
	public void createAccount() {
		Scanner sc = new Scanner(System.in);
		EX03_AccountVO avo = new EX03_AccountVO();
		System.out.println( "계좌를 생성하기 위한 기본정보를 입력하세여" );
		System.out.println( "계좌~번호~~ please");
		avo.setAid( sc.next() );
		System.out.println( "잔액은 얼마있니? 후후....." );
		avo.setBalance( sc.next() );
		System.out.println( "이자율.......... 있을꺼 같아!?!?!" );
		avo.setInterestRate( sc.next() );
		if ( adao.insertAccount( avo ) ) 
			System.out.println( "계좌생성 완ㄹㄹㄹㄹㄹㄹㄹㄹㄹㄹㄹㄹㄹㄹㄹㄹㄹ려");
		else
			System.out.println( "실패하셨습니다. 재등록 비용은 일만원 입니다. 돈ㅋ돈ㅋ" );
		
		
		
		
		
		
	}

	@Override
	public void readAccount() {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void modifyAccount() {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void removeAccount() {
		// TODO Auto-generated method stub
		
	}

	@Override
	public float getMonthlyInterestRate() {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public void withdraw() {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void deposit() {
		// TODO Auto-generated method stub
		
	}
	
	

} // class
